<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.20"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JCSDK C# API Reference for Windows: JCSDK.JCCall.JCCall类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">JCSDK C# API Reference for Windows
   &#160;<span id="projectnumber">2.3.3.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.20 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespace_j_c_s_d_k.html">JCSDK</a></li><li class="navelem"><a class="el" href="namespace_j_c_s_d_k_1_1_j_c_call.html">JCCall</a></li><li class="navelem"><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.html">JCCall</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">类</a> &#124;
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#properties">属性</a> &#124;
<a href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">JCSDK.JCCall.JCCall类 参考<div class="ingroups"><a class="el" href="group___xE4_xB8_x80_xE5_xAF_xB9_xE4_xB8_x80_xE9_x80_x9A_xE8_xAF_x9D_xE6_xA8_xA1_xE5_x9D_x97.html">一对一通话模块</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
类 JCSDK.JCCall.JCCall 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.png" usemap="#JCSDK.JCCall.JCCall_map" alt=""/>
  <map id="JCSDK.JCCall.JCCall_map" name="JCSDK.JCCall.JCCall_map">
<area href="interface_j_c_s_d_k_1_1_j_c_client_1_1_j_c_client_callback.html" alt="JCSDK.JCClient.JCClientCallback" shape="rect" coords="0,0,292,24"/>
<area href="interface_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device_callback.html" alt="JCSDK.JCMediaDevice.JCMediaDeviceCallback" shape="rect" coords="302,0,594,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
类</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_1_1_call_param.html">CallParam</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_1_1_media_config.html">MediaConfig</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:gaf2a3c5f5944d33d9be387094cc8b721b"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE4_xB8_x80_xE5_xAF_xB9_xE4_xB8_x80_xE9_x80_x9A_xE8_xAF_x9D_xE6_xA8_xA1_xE5_x9D_x97.html#gaf2a3c5f5944d33d9be387094cc8b721b">DtmfValue</a> { <br />
&#160;&#160;<a class="el" href="group___xE4_xB8_x80_xE5_xAF_xB9_xE4_xB8_x80_xE9_x80_x9A_xE8_xAF_x9D_xE6_xA8_xA1_xE5_x9D_x97.html#ggaf2a3c5f5944d33d9be387094cc8b721bafcd6f1f5ae8c5d34f344cedf5dfaba24">DtmfValue.DTMF_0</a> = EN_MTC_CALL_DTMF_TYPE.EN_MTC_CALL_DTMF_0, 
<a class="el" href="group___xE4_xB8_x80_xE5_xAF_xB9_xE4_xB8_x80_xE9_x80_x9A_xE8_xAF_x9D_xE6_xA8_xA1_xE5_x9D_x97.html#ggaf2a3c5f5944d33d9be387094cc8b721baa661f4758b16654c4176256433163721">DtmfValue.DTMF_1</a> = EN_MTC_CALL_DTMF_TYPE.EN_MTC_CALL_DTMF_1, 
<a class="el" href="group___xE4_xB8_x80_xE5_xAF_xB9_xE4_xB8_x80_xE9_x80_x9A_xE8_xAF_x9D_xE6_xA8_xA1_xE5_x9D_x97.html#ggaf2a3c5f5944d33d9be387094cc8b721bab17ddf6098db4ddc78e8eefce5ec73c9">DtmfValue.DTMF_2</a> = EN_MTC_CALL_DTMF_TYPE.EN_MTC_CALL_DTMF_2, 
<a class="el" href="group___xE4_xB8_x80_xE5_xAF_xB9_xE4_xB8_x80_xE9_x80_x9A_xE8_xAF_x9D_xE6_xA8_xA1_xE5_x9D_x97.html#ggaf2a3c5f5944d33d9be387094cc8b721baf89d46abfe2a300496a8c3dbc528a23b">DtmfValue.DTMF_3</a> = EN_MTC_CALL_DTMF_TYPE.EN_MTC_CALL_DTMF_3, 
<br />
&#160;&#160;<a class="el" href="group___xE4_xB8_x80_xE5_xAF_xB9_xE4_xB8_x80_xE9_x80_x9A_xE8_xAF_x9D_xE6_xA8_xA1_xE5_x9D_x97.html#ggaf2a3c5f5944d33d9be387094cc8b721ba92a828a6347f1c5d7c1f901a0b9b733a">DtmfValue.DTMF_4</a> = EN_MTC_CALL_DTMF_TYPE.EN_MTC_CALL_DTMF_4, 
<a class="el" href="group___xE4_xB8_x80_xE5_xAF_xB9_xE4_xB8_x80_xE9_x80_x9A_xE8_xAF_x9D_xE6_xA8_xA1_xE5_x9D_x97.html#ggaf2a3c5f5944d33d9be387094cc8b721bad2a74fc04d5ce36eb1992c81fc61a9ac">DtmfValue.DTMF_5</a> = EN_MTC_CALL_DTMF_TYPE.EN_MTC_CALL_DTMF_5, 
<a class="el" href="group___xE4_xB8_x80_xE5_xAF_xB9_xE4_xB8_x80_xE9_x80_x9A_xE8_xAF_x9D_xE6_xA8_xA1_xE5_x9D_x97.html#ggaf2a3c5f5944d33d9be387094cc8b721ba728d262a7a01d615d9530cfd911d1cf8">DtmfValue.DTMF_6</a> = EN_MTC_CALL_DTMF_TYPE.EN_MTC_CALL_DTMF_6, 
<a class="el" href="group___xE4_xB8_x80_xE5_xAF_xB9_xE4_xB8_x80_xE9_x80_x9A_xE8_xAF_x9D_xE6_xA8_xA1_xE5_x9D_x97.html#ggaf2a3c5f5944d33d9be387094cc8b721ba1b90273e87ff2465e17a3c3b5c4dafe9">DtmfValue.DTMF_7</a> = EN_MTC_CALL_DTMF_TYPE.EN_MTC_CALL_DTMF_7, 
<br />
&#160;&#160;<a class="el" href="group___xE4_xB8_x80_xE5_xAF_xB9_xE4_xB8_x80_xE9_x80_x9A_xE8_xAF_x9D_xE6_xA8_xA1_xE5_x9D_x97.html#ggaf2a3c5f5944d33d9be387094cc8b721ba349d757c3d0933974c12adeac5237f77">DtmfValue.DTMF_8</a> = EN_MTC_CALL_DTMF_TYPE.EN_MTC_CALL_DTMF_8, 
<a class="el" href="group___xE4_xB8_x80_xE5_xAF_xB9_xE4_xB8_x80_xE9_x80_x9A_xE8_xAF_x9D_xE6_xA8_xA1_xE5_x9D_x97.html#ggaf2a3c5f5944d33d9be387094cc8b721ba1a02803b66f51c845bd44703811f70e0">DtmfValue.DTMF_9</a> = EN_MTC_CALL_DTMF_TYPE.EN_MTC_CALL_DTMF_9, 
<a class="el" href="group___xE4_xB8_x80_xE5_xAF_xB9_xE4_xB8_x80_xE9_x80_x9A_xE8_xAF_x9D_xE6_xA8_xA1_xE5_x9D_x97.html#ggaf2a3c5f5944d33d9be387094cc8b721ba3ac2f912456c4cf7191931efd1c2340c">DtmfValue.DTMF_STAR</a> = EN_MTC_CALL_DTMF_TYPE.EN_MTC_CALL_DTMF_STAR, 
<a class="el" href="group___xE4_xB8_x80_xE5_xAF_xB9_xE4_xB8_x80_xE9_x80_x9A_xE8_xAF_x9D_xE6_xA8_xA1_xE5_x9D_x97.html#ggaf2a3c5f5944d33d9be387094cc8b721ba0d8d4fccdb7d80bb1a8a060e09d134ec">DtmfValue.DTMF_POUND</a> = EN_MTC_CALL_DTMF_TYPE.EN_MTC_CALL_DTMF_POUND, 
<br />
&#160;&#160;<a class="el" href="group___xE4_xB8_x80_xE5_xAF_xB9_xE4_xB8_x80_xE9_x80_x9A_xE8_xAF_x9D_xE6_xA8_xA1_xE5_x9D_x97.html#ggaf2a3c5f5944d33d9be387094cc8b721bad8d8677266432de3f7e6af17380a666b">DtmfValue.DTMF_A</a> = EN_MTC_CALL_DTMF_TYPE.EN_MTC_CALL_DTMF_A, 
<a class="el" href="group___xE4_xB8_x80_xE5_xAF_xB9_xE4_xB8_x80_xE9_x80_x9A_xE8_xAF_x9D_xE6_xA8_xA1_xE5_x9D_x97.html#ggaf2a3c5f5944d33d9be387094cc8b721ba51da9ec5cc850c15fd758db3c0783fa3">DtmfValue.DTMF_B</a> = EN_MTC_CALL_DTMF_TYPE.EN_MTC_CALL_DTMF_B, 
<a class="el" href="group___xE4_xB8_x80_xE5_xAF_xB9_xE4_xB8_x80_xE9_x80_x9A_xE8_xAF_x9D_xE6_xA8_xA1_xE5_x9D_x97.html#ggaf2a3c5f5944d33d9be387094cc8b721ba359f202282f05c2910457da5ecbcce90">DtmfValue.DTMF_C</a> = EN_MTC_CALL_DTMF_TYPE.EN_MTC_CALL_DTMF_C, 
<a class="el" href="group___xE4_xB8_x80_xE5_xAF_xB9_xE4_xB8_x80_xE9_x80_x9A_xE8_xAF_x9D_xE6_xA8_xA1_xE5_x9D_x97.html#ggaf2a3c5f5944d33d9be387094cc8b721ba1b1b312cab5697450742f8e8d18bbb72">DtmfValue.DTMF_D</a> = EN_MTC_CALL_DTMF_TYPE.EN_MTC_CALL_DTMF_D
<br />
 }</td></tr>
<tr class="separator:gaf2a3c5f5944d33d9be387094cc8b721b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a98279ae188805122b28d621830f8428c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html">JCCallItem</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.html#a98279ae188805122b28d621830f8428c">getActiveCallItem</a> ()</td></tr>
<tr class="separator:a98279ae188805122b28d621830f8428c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad85706a0b3f5c3ea8c5978ce653678d9"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.html#ad85706a0b3f5c3ea8c5978ce653678d9">call</a> (string userId, bool video, <a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_1_1_call_param.html">CallParam</a> callParam)</td></tr>
<tr class="separator:ad85706a0b3f5c3ea8c5978ce653678d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7d588bb4248d723f23da413bf6997ad"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.html#ae7d588bb4248d723f23da413bf6997ad">term</a> (<a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html">JCCallItem</a> item, <a class="el" href="group___xE4_xB8_x80_xE5_xAF_xB9_xE4_xB8_x80_xE9_x80_x9A_xE8_xAF_x9D_xE6_xA8_xA1_xE5_x9D_x97.html#ga8e398a58e99b02b6f30dc5bd77a6ab9b">JCCallReason</a> reason, string description)</td></tr>
<tr class="separator:ae7d588bb4248d723f23da413bf6997ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a484645bde4791c46bd9d9996744fbd7c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.html#a484645bde4791c46bd9d9996744fbd7c">answer</a> (<a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html">JCCallItem</a> item, bool video)</td></tr>
<tr class="separator:a484645bde4791c46bd9d9996744fbd7c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af8ecead56f755b7bf9baf1ccf1b23cde"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.html#af8ecead56f755b7bf9baf1ccf1b23cde">mute</a> (<a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html">JCCallItem</a> item)</td></tr>
<tr class="separator:af8ecead56f755b7bf9baf1ccf1b23cde"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a29a5e901dd52d7b76eab3c655a4d3606"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.html#a29a5e901dd52d7b76eab3c655a4d3606">hold</a> (<a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html">JCCallItem</a> item)</td></tr>
<tr class="separator:a29a5e901dd52d7b76eab3c655a4d3606"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0e308e69522c9ef8349c4e575c28139b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.html#a0e308e69522c9ef8349c4e575c28139b">audioRecord</a> (<a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html">JCCallItem</a> item, bool enable, string filePath)</td></tr>
<tr class="separator:a0e308e69522c9ef8349c4e575c28139b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b0968f0d7217ae0c3263c7ef01478f9"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.html#a5b0968f0d7217ae0c3263c7ef01478f9">videoRecord</a> (<a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html">JCCallItem</a> item, bool enable, bool remote, int width, int height, string filePath, bool bothAudio)</td></tr>
<tr class="separator:a5b0968f0d7217ae0c3263c7ef01478f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa9beab963c86ad451690725d37561075"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.html#aa9beab963c86ad451690725d37561075">becomeActive</a> (<a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html">JCCallItem</a> item)</td></tr>
<tr class="separator:aa9beab963c86ad451690725d37561075"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adadc4606cace5c827c940ae5e5c6ebcf"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.html#adadc4606cace5c827c940ae5e5c6ebcf">enableUploadVideoStream</a> (<a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html">JCCallItem</a> item)</td></tr>
<tr class="separator:adadc4606cace5c827c940ae5e5c6ebcf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd39b0b928955044951ff98f2e41364a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.html#abd39b0b928955044951ff98f2e41364a">sendMessage</a> (<a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html">JCCallItem</a> item, string type, string content)</td></tr>
<tr class="separator:abd39b0b928955044951ff98f2e41364a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac7b587f27b369b6a18ebcce93e71400b"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.html#ac7b587f27b369b6a18ebcce93e71400b">getStatistics</a> ()</td></tr>
<tr class="separator:ac7b587f27b369b6a18ebcce93e71400b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a67925d76a2d54db55d8d1e7b09f6dc"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.html#a3a67925d76a2d54db55d8d1e7b09f6dc">sendDtmf</a> (<a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html">JCCallItem</a> item, <a class="el" href="group___xE4_xB8_x80_xE5_xAF_xB9_xE4_xB8_x80_xE9_x80_x9A_xE8_xAF_x9D_xE6_xA8_xA1_xE5_x9D_x97.html#gaf2a3c5f5944d33d9be387094cc8b721b">DtmfValue</a> value)</td></tr>
<tr class="separator:a3a67925d76a2d54db55d8d1e7b09f6dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a7113be647cbbd4d7c257490f5ed30c54"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.html">JCCall</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.html#a7113be647cbbd4d7c257490f5ed30c54">create</a> (<a class="el" href="class_j_c_s_d_k_1_1_j_c_client_1_1_j_c_client.html">JCClient.JCClient</a> client, <a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html">JCMediaDevice.JCMediaDevice</a> mediaDevice, <a class="el" href="interface_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_callback.html">JCCallCallback</a> callback)</td></tr>
<tr class="separator:a7113be647cbbd4d7c257490f5ed30c54"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad6124f1e16adb8a6c22f486cb9121746"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.html#ad6124f1e16adb8a6c22f486cb9121746">destroy</a> ()</td></tr>
<tr class="separator:ad6124f1e16adb8a6c22f486cb9121746"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="properties"></a>
属性</h2></td></tr>
<tr class="memitem:a1de1823eae7088f270206e16c0166c8a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_1_1_media_config.html">MediaConfig</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.html#a1de1823eae7088f270206e16c0166c8a">mediaConfig</a><code> [get, set]</code></td></tr>
<tr class="separator:a1de1823eae7088f270206e16c0166c8a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1873d3e982abb3d2804be82e4e4c22ea"><td class="memItemLeft" align="right" valign="top">List&lt; <a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html">JCCallItem</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.html#a1873d3e982abb3d2804be82e4e4c22ea">callItems</a><code> [get]</code></td></tr>
<tr class="separator:a1873d3e982abb3d2804be82e4e4c22ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adace4f81627263452a6178c7828391bd"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.html#adace4f81627263452a6178c7828391bd">maxCallNum</a><code> [get, set]</code></td></tr>
<tr class="separator:adace4f81627263452a6178c7828391bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad799b980e45601c947a3fc049441e1c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.html#aad799b980e45601c947a3fc049441e1c">termWhenNetDisconnected</a><code> [get, set]</code></td></tr>
<tr class="separator:aad799b980e45601c947a3fc049441e1c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>一对一通话类</p>
<p>该类的所有实例方法在调用时需保证用户的登录状态为已登录 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a484645bde4791c46bd9d9996744fbd7c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a484645bde4791c46bd9d9996744fbd7c">&#9670;&nbsp;</a></span>answer()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool JCSDK.JCCall.JCCall.answer </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html">JCCallItem</a>&#160;</td>
          <td class="paramname"><em>item</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>video</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>接听</p>
<p>调用接口成功会收到 <a class="el" href="interface_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_callback.html#a68145b559d05790734ee2333a8711505">onCallItemUpdate</a> 通知<br  />
 另外还有两种情况也会收到 <a class="el" href="interface_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_callback.html#a68145b559d05790734ee2333a8711505">onCallItemUpdate</a> 通知：1、若收到的是视频呼叫，而本端选择了音频接听 2、若此路通话不是活跃的，会将此路通话设为活跃通话。<br  />
 调用接口失败会收到 <a class="el" href="interface_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_callback.html#a805063e9a8782ced7e0c4314cb02385a">onCallItemRemove</a> 通知</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">item</td><td><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html">JCCallItem</a> 对象，不能为空，并且 <a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.html#a1873d3e982abb3d2804be82e4e4c22ea">callItems</a> 通话列表中要包含此对象 </td></tr>
    <tr><td class="paramname">video</td><td>针对视频呼入可以选择以视频接听还是音频接听<ul>
<li>true: 视频接听</li>
<li>false: 音频接听 </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>是否正常调用<ul>
<li>true：正常执行调用流程</li>
<li>false：调用失败 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="a0e308e69522c9ef8349c4e575c28139b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0e308e69522c9ef8349c4e575c28139b">&#9670;&nbsp;</a></span>audioRecord()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool JCSDK.JCCall.JCCall.audioRecord </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html">JCCallItem</a>&#160;</td>
          <td class="paramname"><em>item</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enable</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>filePath</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>开启/关闭通话录音</p>
<p>调用成功会收到 <a class="el" href="interface_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_callback.html#a68145b559d05790734ee2333a8711505">onCallItemUpdate</a> 通知</p>
<p>开启通话录音，需要保证没有在录音也没有在录制视频<br  />
 关闭通话录音，需要保证当前通话正在录音</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">item</td><td><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html">JCCallItem</a> 对象，不能为空，并且 <a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.html#a1873d3e982abb3d2804be82e4e4c22ea">callItems</a> 通话列表中要包含此对象 </td></tr>
    <tr><td class="paramname">enable</td><td>开启/关闭录音<ul>
<li>true: 开启录音</li>
<li>false: 关闭录音 </li>
</ul>
</td></tr>
    <tr><td class="paramname">filePath</td><td><b>录音文件的本地保存路径，由用户自行指定，需精确到文件名及格式，例如：/Documents/Juphoon/JCSample/audio.wmv。请确保目录存在且可写。</b> </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>是否正常调用<ul>
<li>true：正常执行调用流程</li>
<li>false：调用失败 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="aa9beab963c86ad451690725d37561075"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa9beab963c86ad451690725d37561075">&#9670;&nbsp;</a></span>becomeActive()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool JCSDK.JCCall.JCCall.becomeActive </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html">JCCallItem</a>&#160;</td>
          <td class="paramname"><em>item</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>切换活跃通话</p>
<p>调用此方法时，入参 <a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html">JCCallItem</a> 对象不是活跃的，则会收到 <a class="el" href="interface_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_callback.html#a68145b559d05790734ee2333a8711505">onCallItemUpdate</a> 通知<br  />
 入参 <a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html">JCCallItem</a> 对象已是活跃的，则不会收到通知</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">item</td><td>需要变为活跃状态的 <a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html">JCCallItem</a> 对象 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>是否正常调用<ul>
<li>true：正常执行调用流程</li>
<li>false：调用失败 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="ad85706a0b3f5c3ea8c5978ce653678d9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad85706a0b3f5c3ea8c5978ce653678d9">&#9670;&nbsp;</a></span>call()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool JCSDK.JCCall.JCCall.call </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>userId</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>video</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_1_1_call_param.html">CallParam</a>&#160;</td>
          <td class="paramname"><em>callParam</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>发起一对一呼叫</p>
<p>若发起的是音频呼叫，需要保证本地不存视频通话，并且本地通话数未达到最大通话数，最大通话数为：<a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.html#adace4f81627263452a6178c7828391bd">maxCallNum</a> <br  />
 若发起的是视频呼叫，需要保证本地不存在通话 <br  />
 发起呼叫成功后，会收到 <a class="el" href="interface_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_callback.html#a60bb6e2895d62647d3ec4804f95b6739">onCallItemAdd</a> 通知 <br  />
 以下两种情况会收到 <a class="el" href="interface_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_callback.html#a805063e9a8782ced7e0c4314cb02385a">onCallItemRemove</a> 通知：</p><ul>
<li>本端发起视频呼叫时，对方已存在通话</li>
<li>本端发起音频呼叫时，对方已存在视频通话</li>
</ul>
<dl class="section note"><dt>注解</dt><dd>在调用此接口时确保用户的登录状态为已登录</dd></dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">userId</td><td>对方的用户标识 </td></tr>
    <tr><td class="paramname">video</td><td>是否视频呼叫<ul>
<li>true: 视频呼叫</li>
<li>false: 音频呼叫 </li>
</ul>
</td></tr>
    <tr><td class="paramname">callParam</td><td><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_1_1_call_param.html">CallParam</a> 通话参数对象，此参数可为空。详细定义见: <a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_1_1_call_param.html">CallParam</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>是否正常调用<ul>
<li>true：正常执行调用流程</li>
<li>false：调用失败 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="a7113be647cbbd4d7c257490f5ed30c54"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7113be647cbbd4d7c257490f5ed30c54">&#9670;&nbsp;</a></span>create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.html">JCCall</a> JCSDK.JCCall.JCCall.create </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_j_c_s_d_k_1_1_j_c_client_1_1_j_c_client.html">JCClient.JCClient</a>&#160;</td>
          <td class="paramname"><em>client</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html">JCMediaDevice.JCMediaDevice</a>&#160;</td>
          <td class="paramname"><em>mediaDevice</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="interface_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_callback.html">JCCallCallback</a>&#160;</td>
          <td class="paramname"><em>callback</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建 <a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.html">JCCall</a> 对象</p>
<p><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.html">JCCall</a> 的所有接口函数，如无特殊说明，都建议在主线程调用</p>
<dl class="section note"><dt>注解</dt><dd><ul>
<li>调用此方法创建 <a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.html">JCCall</a> 对象后，期间没有调用过 <a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.html#ad6124f1e16adb8a6c22f486cb9121746">destroy</a> 方法销毁对象，然后又重复调用此方法，会直接返回第一次创建的 <a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.html">JCCall</a> 对象</li>
<li>调用此方法前确保 <a class="el" href="namespace_j_c_s_d_k_1_1_j_c_client.html">JCClient</a> 已完成初始化，即 <a class="el" href="class_j_c_s_d_k_1_1_j_c_client_1_1_j_c_client.html#a8b114554ece8a6e4e03dd8f91812b802">state</a> 状态值不等于 <a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#ga2aa0686490aced8d8c24d3318a989af8">NotInit</a></li>
</ul>
</dd></dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">client</td><td><a class="el" href="namespace_j_c_s_d_k_1_1_j_c_client.html">JCClient</a> 对象 </td></tr>
    <tr><td class="paramname">mediaDevice</td><td><a class="el" href="namespace_j_c_s_d_k_1_1_j_c_media_device.html">JCMediaDevice</a> 对象，通过 <a class="el" href="class_j_c_s_d_k_1_1_j_c_media_device_1_1_j_c_media_device.html#aff164c84a0268bc6c38891d520af8fb4">create</a> 方法创建 </td></tr>
    <tr><td class="paramname">callback</td><td><a class="el" href="interface_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_callback.html">JCCallCallback</a> 对象，用于回调相关通知 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.html">JCCall</a> 对象 </dd></dl>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname">client、mediaDevice、callback 任意一个参数传空就会创建失败</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ad6124f1e16adb8a6c22f486cb9121746"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad6124f1e16adb8a6c22f486cb9121746">&#9670;&nbsp;</a></span>destroy()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void JCSDK.JCCall.JCCall.destroy </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>销毁 <a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.html">JCCall</a> 对象</p>
<dl class="section note"><dt>注解</dt><dd>此方法为异步调用，所以在调用此方法后不能马上调用 <a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.html#a7113be647cbbd4d7c257490f5ed30c54">create</a> 方法去重新创建 <a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.html">JCCall</a> 对象 </dd></dl>

</div>
</div>
<a id="adadc4606cace5c827c940ae5e5c6ebcf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adadc4606cace5c827c940ae5e5c6ebcf">&#9670;&nbsp;</a></span>enableUploadVideoStream()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool JCSDK.JCCall.JCCall.enableUploadVideoStream </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html">JCCallItem</a>&#160;</td>
          <td class="paramname"><em>item</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>开启/关闭视频流发送</p>
<p>调用成功会收到 <a class="el" href="interface_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_callback.html#a68145b559d05790734ee2333a8711505">onCallItemUpdate</a> 通知</p>
<p>通过 <a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html">JCCallItem</a> 对象的 <a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html#a25071b8a4bca141f53a0c810cb0d43bc">uploadVideoStreamSelf</a> 状态来决定开启还是关闭视频流的发送</p><ul>
<li>若 <a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html#a25071b8a4bca141f53a0c810cb0d43bc">uploadVideoStreamSelf</a> 为 true，即已在上传视频流: 关闭视频流发送</li>
<li>若 <a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html#a25071b8a4bca141f53a0c810cb0d43bc">uploadVideoStreamSelf</a> 为 false，即未上传视频流: 开启视频流发送</li>
</ul>
<dl class="section note"><dt>注解</dt><dd>用于视频通话中</dd></dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">item</td><td><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html">JCCallItem</a> 对象，不能为空，并且 <a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.html#a1873d3e982abb3d2804be82e4e4c22ea">callItems</a> 通话列表中要包含此对象 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>是否正常调用<ul>
<li>true：正常执行调用流程</li>
<li>false：调用失败 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="a98279ae188805122b28d621830f8428c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a98279ae188805122b28d621830f8428c">&#9670;&nbsp;</a></span>getActiveCallItem()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html">JCCallItem</a> JCSDK.JCCall.JCCall.getActiveCallItem </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获得当前活跃的通话</p>
<dl class="section return"><dt>返回</dt><dd><ul>
<li><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html">JCCallItem</a> 对象：当前活跃的通话对象</li>
<li>null：当前没有活跃的通话 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="ac7b587f27b369b6a18ebcce93e71400b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac7b587f27b369b6a18ebcce93e71400b">&#9670;&nbsp;</a></span>getStatistics()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string JCSDK.JCCall.JCCall.getStatistics </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获得当前通话统计信息</p>
<p>统计信息以Json字符串形式返回，其中包含 "Audio" 和 "Video" 两个节点</p>
<dl class="section return"><dt>返回</dt><dd>当前通话统计信息 </dd></dl>

</div>
</div>
<a id="a29a5e901dd52d7b76eab3c655a4d3606"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a29a5e901dd52d7b76eab3c655a4d3606">&#9670;&nbsp;</a></span>hold()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool JCSDK.JCCall.JCCall.hold </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html">JCCallItem</a>&#160;</td>
          <td class="paramname"><em>item</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>开启/取消呼叫保持</p>
<p>调用成功会收到 <a class="el" href="interface_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_callback.html#a68145b559d05790734ee2333a8711505">onCallItemUpdate</a> 通知</p>
<p>开启呼叫保持后，通话将被挂起，通过 <a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html#a95be907fd31174c12759bd8e836cd0ec">hold</a> 来决定开启/取消呼叫保持</p><ul>
<li><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html#a95be907fd31174c12759bd8e836cd0ec">hold</a> 为 true，即呼叫保持状态时: 取消呼叫保持</li>
<li><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html#a95be907fd31174c12759bd8e836cd0ec">hold</a> 为 false，即不是呼叫保持状态时: 开启呼叫保持</li>
</ul>
<dl class="section note"><dt>注解</dt><dd>只针对音频，如果是视频通话则要上层处理视频逻辑</dd></dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">item</td><td><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html">JCCallItem</a> 对象，不能为空，并且 <a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.html#a1873d3e982abb3d2804be82e4e4c22ea">callItems</a> 通话列表中要包含此对象，此对象的通话状态必须为通话中 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>是否正常调用<ul>
<li>true：正常执行调用流程</li>
<li>false：调用失败 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="af8ecead56f755b7bf9baf1ccf1b23cde"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af8ecead56f755b7bf9baf1ccf1b23cde">&#9670;&nbsp;</a></span>mute()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool JCSDK.JCCall.JCCall.mute </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html">JCCallItem</a>&#160;</td>
          <td class="paramname"><em>item</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>开启/取消静音</p>
<p>调用成功会收到 <a class="el" href="interface_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_callback.html#a68145b559d05790734ee2333a8711505">onCallItemUpdate</a> 通知</p>
<p>开启后对端听不到本端的声音，通过 <a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html#aa3bdcfa9fd52b132eba0b49ba2f81ab3">mute</a> 来决定开启/取消静音</p><ul>
<li><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html#aa3bdcfa9fd52b132eba0b49ba2f81ab3">mute</a> 为 true，即静音状态时: 取消静音</li>
<li><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html#aa3bdcfa9fd52b132eba0b49ba2f81ab3">mute</a> 为 false，即不是静音状态时: 开启静音</li>
</ul>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">item</td><td><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html">JCCallItem</a> 对象，不能为空，并且 <a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.html#a1873d3e982abb3d2804be82e4e4c22ea">callItems</a> 通话列表中要包含此对象，此对象的通话状态必须为通话中 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>是否正常调用<ul>
<li>true：正常执行调用流程</li>
<li>false：调用失败 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="a3a67925d76a2d54db55d8d1e7b09f6dc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3a67925d76a2d54db55d8d1e7b09f6dc">&#9670;&nbsp;</a></span>sendDtmf()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool JCSDK.JCCall.JCCall.sendDtmf </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html">JCCallItem</a>&#160;</td>
          <td class="paramname"><em>item</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group___xE4_xB8_x80_xE5_xAF_xB9_xE4_xB8_x80_xE9_x80_x9A_xE8_xAF_x9D_xE6_xA8_xA1_xE5_x9D_x97.html#gaf2a3c5f5944d33d9be387094cc8b721b">DtmfValue</a>&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>发送DTMF信息</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">item</td><td>需要发送数据的 <a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html">JCCallItem</a> 对象 </td></tr>
    <tr><td class="paramname">value</td><td><a class="el" href="group___xE4_xB8_x80_xE5_xAF_xB9_xE4_xB8_x80_xE9_x80_x9A_xE8_xAF_x9D_xE6_xA8_xA1_xE5_x9D_x97.html#gaf2a3c5f5944d33d9be387094cc8b721b">DTMF值</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>是否正常调用<ul>
<li>true：正常执行调用流程</li>
<li>false：调用失败 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="abd39b0b928955044951ff98f2e41364a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abd39b0b928955044951ff98f2e41364a">&#9670;&nbsp;</a></span>sendMessage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool JCSDK.JCCall.JCCall.sendMessage </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html">JCCallItem</a>&#160;</td>
          <td class="paramname"><em>item</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>content</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>通过通话建立的通道发送数据</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">item</td><td>需要发送数据的 <a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html">JCCallItem</a> 对象，不能为空，并且 <a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.html#a1873d3e982abb3d2804be82e4e4c22ea">callItems</a> 通话列表中要包含此对象 </td></tr>
    <tr><td class="paramname">type</td><td>文本消息类型，用户可以自定义，例如text，xml等 </td></tr>
    <tr><td class="paramname">content</td><td>文本内容 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>是否正常调用<ul>
<li>true：正常执行调用流程</li>
<li>false：调用失败 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="ae7d588bb4248d723f23da413bf6997ad"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae7d588bb4248d723f23da413bf6997ad">&#9670;&nbsp;</a></span>term()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool JCSDK.JCCall.JCCall.term </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html">JCCallItem</a>&#160;</td>
          <td class="paramname"><em>item</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group___xE4_xB8_x80_xE5_xAF_xB9_xE4_xB8_x80_xE9_x80_x9A_xE8_xAF_x9D_xE6_xA8_xA1_xE5_x9D_x97.html#ga8e398a58e99b02b6f30dc5bd77a6ab9b">JCCallReason</a>&#160;</td>
          <td class="paramname"><em>reason</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>description</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>挂断</p>
<p>调用接口成功会收到 <a class="el" href="interface_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_callback.html#a805063e9a8782ced7e0c4314cb02385a">onCallItemRemove</a> 通知</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">item</td><td><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html">JCCallItem</a> 对象，不能为空，并且 <a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.html#a1873d3e982abb3d2804be82e4e4c22ea">callItems</a> 通话列表中要包含此对象 </td></tr>
    <tr><td class="paramname">reason</td><td><a class="el" href="group___xE4_xB8_x80_xE5_xAF_xB9_xE4_xB8_x80_xE9_x80_x9A_xE8_xAF_x9D_xE6_xA8_xA1_xE5_x9D_x97.html#ga8e398a58e99b02b6f30dc5bd77a6ab9b">挂断原因</a> </td></tr>
    <tr><td class="paramname">description</td><td>挂断描述 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>是否正常调用<ul>
<li>true：正常执行调用流程</li>
<li>false：调用失败 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="a5b0968f0d7217ae0c3263c7ef01478f9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5b0968f0d7217ae0c3263c7ef01478f9">&#9670;&nbsp;</a></span>videoRecord()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool JCSDK.JCCall.JCCall.videoRecord </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html">JCCallItem</a>&#160;</td>
          <td class="paramname"><em>item</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enable</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>remote</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>filePath</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>bothAudio</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>开启/关闭视频通话录制</p>
<p>调用成功会收到 <a class="el" href="interface_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_callback.html#a68145b559d05790734ee2333a8711505">onCallItemUpdate</a> 通知</p>
<p>开启视频录制，需要保证 1、没有在录音 2、若是录制远端视频，要保证没有在录制远端视频，并且远端在上传视频流 3、若是录制本端视频，要保证没有在录制本端视频，并且本端在上传视频流。<br  />
 关闭视频录制，需要保证 1、若是关闭远端视频，要保证正在录制远端视频 2、若是关闭本端视频，要保证正在录制本端视频</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">item</td><td><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html">JCCallItem</a> 对象，不能为空，并且 <a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.html#a1873d3e982abb3d2804be82e4e4c22ea">callItems</a> 通话列表中要包含此对象 </td></tr>
    <tr><td class="paramname">enable</td><td>是否开启视频通话录制<ul>
<li>true: 开启</li>
<li>false: 关闭 </li>
</ul>
</td></tr>
    <tr><td class="paramname">remote</td><td>是否录制远端视频源<ul>
<li>true: 录制远端视频</li>
<li>false: 录制本端视频 </li>
</ul>
</td></tr>
    <tr><td class="paramname">width</td><td>录制视频宽像素 </td></tr>
    <tr><td class="paramname">height</td><td>录制视频高像素 </td></tr>
    <tr><td class="paramname">filePath</td><td><b>录制视频文件的本地保存路径，由用户自行指定，需精确到文件名及格式，例如：/Documents/Juphoon/JCSample/video.mp4。请确保目录存在且可写。</b> </td></tr>
    <tr><td class="paramname">bothAudio</td><td>是否录制两端音频<ul>
<li>true: 录制两端音频</li>
<li>false: 录制视频端音频。也就是说 remote 为 true 就录制远端音频，remote 为 false 录制本端音频。 </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>是否正常调用<ul>
<li>true：正常执行调用流程</li>
<li>false：调用失败 </li>
</ul>
</dd></dl>

</div>
</div>
<h2 class="groupheader">属性说明</h2>
<a id="a1873d3e982abb3d2804be82e4e4c22ea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1873d3e982abb3d2804be82e4e4c22ea">&#9670;&nbsp;</a></span>callItems</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">List&lt;<a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html">JCCallItem</a>&gt; JCSDK.JCCall.JCCall.callItems</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获得通话对象列表</p>
<p>当 <a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.html#adace4f81627263452a6178c7828391bd">maxCallNum</a> &gt; 1 时，callItems 通话对象列表中可能存在多个音频通话 </p>

</div>
</div>
<a id="adace4f81627263452a6178c7828391bd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adace4f81627263452a6178c7828391bd">&#9670;&nbsp;</a></span>maxCallNum</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int JCSDK.JCCall.JCCall.maxCallNum</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>最大通话数，默认值为1</p>
<dl class="section note"><dt>注解</dt><dd>当通话数到达最大通话数后，调用 <a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.html#ad85706a0b3f5c3ea8c5978ce653678d9">call</a> 接口呼出会失败，收到来电会自动拒绝 </dd></dl>

</div>
</div>
<a id="a1de1823eae7088f270206e16c0166c8a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1de1823eae7088f270206e16c0166c8a">&#9670;&nbsp;</a></span>mediaConfig</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_1_1_media_config.html">MediaConfig</a> JCSDK.JCCall.JCCall.mediaConfig</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>当前的媒体配置参数 </p><dl class="section note"><dt>注解</dt><dd>该属性在调用 <a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call.html#ad85706a0b3f5c3ea8c5978ce653678d9">call</a> 方法之前设置才生效<br  />
 JCCallMediaConfig 对象建议通过 <a class="el" href="">generateByMode</a> 方法创建 </dd></dl>

</div>
</div>
<a id="aad799b980e45601c947a3fc049441e1c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aad799b980e45601c947a3fc049441e1c">&#9670;&nbsp;</a></span>termWhenNetDisconnected</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool JCSDK.JCCall.JCCall.termWhenNetDisconnected</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>当音频接收网络状态为无网络时是否挂断，默认为 false</p>
<p>即 <a class="el" href="class_j_c_s_d_k_1_1_j_c_call_1_1_j_c_call_item.html#a8745ec44486732592e47eaf5b6a78b1b">audioNetReceiveStatus</a> 状态为 JCCallNetWorkDisconnected 时是否挂断</p>
<ul>
<li>true: 挂断</li>
<li>false: 不挂断 </li>
</ul>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>JCSDK/JCSDK/JCCall/JCCall.cs</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20
</small></address>
</body>
</html>
